package com.lefevre.cms.web.action.theme.impl;

import com.lefevre.cms.bean.theme.Column;
import com.lefevre.cms.bean.theme.Forum;
import com.lefevre.cms.web.action.theme.ColumnManage;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * 站点栏目 -- 模板方法实现
 */
@Component("column_TemplateManage")
public class Column_TemplateManage {

    @Resource
    ColumnManage columnManage;

    /**
     * 站点栏目列表 -- 集合
     *
     * @param forum
     */
    public List<Column> column_collection(Forum forum, Map<String, Object> parameter, Map<String, Object> runtimeParameter) {
        List<Column> columnList = columnManage.columnList_cache(forum.getDirName());
        return columnList;
    }
}
